<?php

namespace App\Enums;

use MyCLabs\Enum\Enum;


final class UserEnum extends Enum
{
    public const USER_DISABLED = 0;
    public const USER_ENABLED = 1;


    public static function getUserStatusDesc($value): string
    {
        switch ($value){
            case self::USER_DISABLED:
                return '冻结';
                break;
            case self::USER_ENABLED:
                return '正常';
                break;
            default:
                return self::getKey();
                break;
        }
    }
}

